package com.ruijie.bigdata.executor.jobhandler;

/**
 * Created by LinQing on 2018/7/4.
 */
public class Constants {

    public static String SPARK_MASTER = "spark.master";
    public static String SPARK_MASTER_DEFAULT = "yarn";
    public static String SPARK_SUBMIT_DEPLOYMODE = "spark.submit.deployMode";
    public static String SPARK_SUBMIT_DEPLOYMODE_DEFAULT = "cluster";

    public static String RJ_SPARK_HOME = "RJ_SPARK_HOME";
    public static String RJ_SPARK_HOME_DEFAULT = "/opt/cloudera/parcels/SPARK2/lib/spark2";

    public static String RJ_APP_NAME = "RJ_APP_NAME";

    public static String RJ_RES_PATH = "RJ_RES_PATH";
    public static String RJ_MAIN_CLASS = "RJ_MAIN_CLASS";

    public static String RJ_APP_ARR_PRE = "RJ_APP_ARR_";

    public static String RJ_SPARK_ARR_PRE = "spark";
    public static String RJ_APP_TIMEOUT_IN_MIN = "RJ_APP_TIMEOUT_IN_MIN";
    public static String RJ_APP_TIMEOUT_IN_MIN_DEFAULT = "-1";
    //TODO: 后续APP的配置可以放在Zookeeper上或者放到MYSQL中
    public static String RJ_APP_CONF_FILE_BASE = "/etc/xxl-job/spark_app_conf/";


    public static long RJ_STATUS_CHECK = 5000;
    public static int RJ_TRY_STOP_TIME = 5;
    public static int RJ_TRY_STOP_INTERVAL = 10000;
}
